package org.example;

public class Sheep extends Animal{
    public Sheep() {
        super();
    }
    public Sheep(String name) {
        super(name);
    }

    @Override
    protected String getShoutSound() {
        return "咩";
    }
}
/*
public class Sheep extends Animal{
    public Sheep() {
        super();
    } 
    public Sheep(String name) {
        super(name);
    }
    
    public String shout() {
        String result = "";
        for(int i=0;i<this.shoutNum;i++){
            result +="咩 ";
        }
        return "我的名字叫" + name + " " + result;
    }
}
*/